<script setup>
import ItemFour from '../components/itemFour.vue';
import ItemOne from '../components/itemOne.vue';
import itemPage from '../components/itemPage.vue';
import ItemThree from '../components/itemThree.vue';
import ItemTwo from '../components/itemTwo.vue';
import mapPage from '../components/mapPage.vue';
</script>
<template>
  <header>
    <h1>Vue3 + Echart大数据可视化</h1>
  </header>
  <!--大容器-->
  <section class="container">
    <!--左边-->
    <section class="itemLeft">
      <itemPage>
        <ItemOne></ItemOne>
      </itemPage>
      <itemPage>
        <ItemTwo></ItemTwo>
      </itemPage>
    </section>
    <!--中间-->
    <section class="itemCenter" ref="chart">
      <mapPage></mapPage>
    </section>
    <!--右边-->
    <section class="itemRight">
      <itemPage>
        <ItemThree></ItemThree>
      </itemPage>
      <itemPage>
        <ItemFour></ItemFour>
      </itemPage>
    </section>

  </section>
</template>

<style lang="less">
header {
  height: 1rem;
  width: 100%;
  background-color: rgba(0, 0, 255, 0.2);

  h1 {
    font-size: 0.375rem;
    color: #fff;
    text-align: center;
    line-height: 1rem;
  }
}

.container {
  min-width: 1200px; //最小宽度
  max-width: 2048px; //最大宽度
  margin: 0 auto;
  padding: .125rem .125rem 0;
  //background-color: gray;
  display: flex;

  //设置左右在页面的份数
  .itemLeft,
  .itemRight {
    flex: 3;
  }

  .itemCenter {
    flex: 5;
    height: 10.5rem;
    border: 1px solid blue;
    padding: .125rem;
    margin: .25rem;

  }
}
</style>
